package com.med.mapper;


import com.med.entity.DoctorDO;
import com.med.entity.ScheduleDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @BelongsProject: Internet-based-healthcare
 * @BelongsPackage: com.med.mapper
 * @Author: 小龚
 * @CreateTime: 2025-08-22 16:00
 * @Description: 智能排班
 * @Version: 1.0
 */
@Mapper
public interface ScheduleMapper {

    // 查询出现有的每个医生id
    List<DoctorDO> findAllDoctor();


    // 根据医生id查询医生的排班
    List<ScheduleDO> findDoctorByDoctorId(Integer doctorId);

    // 排班
    Integer schedule(@Param("scheduleDO") ScheduleDO scheduleDO);


    // 查询智能排班的状态
    String schedulingStatus();

    // 修改智能排班状态
    Integer updateSchedulingStatus();
}
